| Working with the Viewer > Integrating with Your Application > Configuring Samples | 
The Prizm Imaging Services samples demonstrate document viewing via an HTML5 application communicating via a web server with Imaging Services using a RESTful scheme as noted in the PCC RESTful API topic. The samples show the web service layer being implemented in either Microsoft C#, PHP, or Java. The following steps summarize the events required to initiate a document viewing session between Prizm Services and the web server:
Web server requests a new viewing session from Imaging Services.
| Example | 
                             
                                Copy Code
                             
                         | 
                    
|---|---|
                            
POST http://localhost:18681/PCCIS/V1/ViewingSession
                         | 
                    |
![]()  | 
                        
                             Prizm Services responds with the Document/Session Identification that the web server is to use for all further Prizm Services service communication for the loaded document.  | 
                    
Web server uploads a file to Prizm Services.
| Example | 
                             
                                Copy Code
                             
                         | 
                    
|---|---|
                            
PUT http://localhost:18681/PCCIS/V1/ViewingSessions/u{Viewing Session ID}/SourceFile?FileExtension={File Extension}
                         | 
                    |
Web server initiates a viewing Session in Prizm Services.
| Example | 
                             
                                Copy Code
                             
                         | 
                    
|---|---|
                            
POST http://localhost:18681/PCCIS/V1/ViewingSessions/u{Viewing Session ID}/Notification/SessionStarted
                         | 
                    |
